package edu.whu.service.impl;

import edu.whu.dao.BookDao;
import edu.whu.service.BookService;

public class BookServiceImpl2 implements BookService {
    private BookDao bookDao;
    private int price;

    public BookDao getBookDao() {
        return bookDao;
    }

    public void setBookDao(BookDao bookDao, String name) {
        System.out.println("错误的方法");
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void save() {
        bookDao.save();
        System.out.println("BookServiceImpl is saving...The price is " + price);
    }
}
